package cn.javass.struts2impl.hello.action;

import org.apache.log4j.Logger;

import cn.javass.struts2impl.hello.model.UserModel;

import com.opensymphony.xwork2.ActionSupport;

public class RegisterAction extends ActionSupport {
    private final Logger logger = Logger.getLogger(getClass());
    
    private UserModel user;
    
    @Override
    public String execute() throws Exception {
        
        logger.info("传入的参数为" + user);
        
        return SUCCESS;
    }
    
    public String toRegister() throws Exception {
        return "toRegister";
    }

    public UserModel getUser() {
        return user;
    }

    public void setUser(UserModel user) {
        this.user = user;
    }
    

}
